﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AdminSite.Master"
    Inherits="System.Web.Mvc.ViewPage<multimedia_set>" %>

<%@ Import Namespace="Veteran_cms.Models" %>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">
    <!-- Validation form -->
    <%using (Html.BeginForm("Details", "ManageMultimediaFile", new { id = Model.set_id }, FormMethod.Post, new { enctype = "multipart/form-data", @class = "form", id = "validate" }))
      { %>
    <!-- Multiple files uploader -->
    <fieldset>
        <div>
            <div class="widget">
                <div style="float: right">
                    <a href="<%=Url.Action("IndexMultimediaFile","ManageMultimediaFile") %>" title=""
                        class="backTo" style="margin: 5px;">
                        <img src="../../images/adminSite/icons/prev.png" alt="" class="icon" /><span>Trở về</span></a></div>
                <div class="title">
                    <img src="../../Images/adminSite/icons/dark/pencil.png" alt="" class="titleIcon" /><h6>
                        Thông tin sự kiện</h6>
                </div>
                <%if (ViewData["Msg"] != null)
                  {%>
                <div class="nNote nSuccess hideit">
                    <p>
                        <strong>
                            <%=ViewData["Msg"]%></strong></p>
                </div>
                <%} %>
                <div class="formRow">
                    <label>
                        Tiêu đề:<span class="req">*</span></label>
                    <div class="formRight">
                        <%:Html.TextBoxFor(model => model.title, new { @class = "validate[required,maxSize[255]]", id = "req" })%></div>
                    <div class="clear">
                    </div>
                </div>
                <div class="formRow">
                    <label>
                        Diễn giải:<span class="req">*</span></label>
                    <div class="formRight">
                        <%:Html.TextAreaFor(model => Model.description, new { @class = "validate[maxSize[500]]", id = "textareaAutoGrow", rows = "4", cols = "" })%></div>
                    <div class="clear">
                    </div>
                </div>
                <div class="formRow">
                    <label>
                        Hình ảnh large:<span class="req">(353x258)*</span></label>
                    <div class="formRight">
                        <img src="<%=Model.image_large %>" alt="<%=Model.title%>" /></div>
                    <div class="formRight">
                        <input type="file" id="file1" name="uploadFile" /></div>
                    <div class="clear">
                    </div>
                </div>
                <div class="formRow">
                    <div class="formRight">
                        <%=Html.CheckBoxFor(model=>model.is_active) %><label for="check1">Hiển thị</label>
                    </div>
                    <div class="clear">
                    </div>
                </div>
            </div>
        </div>
        <div class="widget">
            <%using (Html.BeginForm("Delete", "ManageMultimediaFile", new { id = Model.set_id }, FormMethod.Post, new { enctype = "multipart/form-data", @class = "form" }))
              { %>
            <div class="formSubmit">
                <input type="submit" value="Xóa" class="redB" /></div>
            <%} %>
            <div class="formSubmit">
                <input type="submit" value="Cập nhật" class="blueB" /></div>
            <%} %>
            <div class="clear">
            </div>
            <div>
                <%:Html.HiddenFor(model => Model.set_id)%></div>
        </div>
    </fieldset>
</asp:Content>
